local Lang = require("common.Lang")

-- 副本类型
COPY_TYPE_SINGLE = 1
COPY_TYPE_TEAM = 2
COPY_TYPE_MULTI = 3
COPY_TYPE_FAMILY = 4
COPY_TYPE_COUPLE = 5

-- 副本结束码
COPY_FINISH_OK = 1		 -- 副本通关
COPY_FINISH_TD_FAIL = 2  -- 守护目标被击败 副本失败
COPY_FINISH_TIMEOUT = 3  -- 时间到 副本失败
COPY_FINISH_DIE_FAIL = 4 -- 死亡 副本失败
COPY_FINISH_ACT_END = 5	 -- 活动结束
COPY_FINISH_PK_OK   = 6  -- 挑战成功


-- 副本目标状态
AIM_STATUS_NOT_ACCEPT = 0			-- 目标还没有接受
AIM_STATUS_DOING_CANNOT_FINISH = 1  -- 目标已经接受 但是还未完成
AIM_STATUS_DOING_CAN_FINISH = 2     -- 目标已经接受 并且可以完成
AIM_STATUS_FINISHED = 3				-- 目标已经完成
AIM_STATUS_FAIL = 4					-- 目标失败

-- 副本目标类型
AIM_TYPE_HIDE = 0			-- 隐藏目标
AIM_TYPE_MAIN = 1			-- 主线目标
AIM_TYPE_CHALLENGE = 2		-- 挑战目标

-- 副本目标动作
COPY_AIM_ACTION_TALK = 1			-- 对话
COPY_AIM_ACTION_MONSTER = 2			-- 打怪(特定id)
COPY_AIM_ACTION_COLLECT = 3			-- 采集
COPY_AIM_ACTION_MONSTER_TABLE = 5	-- 打怪(特定id团)
COPY_AIM_ACTION_BLANK = 6			-- 空白（由地图事件完成）
COPY_AIM_ACTION_BLANK_N = 7			-- 空白and地图n（由地图事件完成）
COPY_AIM_ACTION_REACH_AREA = 8  -- 到达区域

-- 接目标错误码
COPY_AIM_ACCEPT_OK = 0				-- 接受副本目标成功
COPY_AIM_ACCEPT_FAIL_ACCEPTED = 1   -- 目标不可接，已经接过
COPY_AIM_ACCEPT_FAIL_FINISHED =	2	-- 目标不可接，已经完成
COPY_AIM_ACCEPT_FAIL_PREV_AIM = 3	-- 目标不可接，前置目标未完成

-- 交目标错误码
COPY_AIM_FINISH_OK = 0						-- 副本目标可交
COPY_AIM_FINISH_FAIL_NOT_ACCEPTED =		1	-- 副本目标不可交，还没有接
COPY_AIM_FINISH_FAIL_NOT_ENOUGH_NUM =	2	-- 副本目标不可交，目标数量不足
COPY_AIM_FINISH_FAIL_POS =				3	-- 副本目标不可交，不在npc附近
COPY_AIM_FINISH_FAIL_TIME =				4	-- 副本目标不可交，超时

errAcceptTip = {}
errAcceptTip[COPY_AIM_ACCEPT_FAIL_ACCEPTED] = Lang.COPY_AIM_ACCEPT_FAIL_ACCEPTED
errAcceptTip[COPY_AIM_ACCEPT_FAIL_FINISHED] = Lang.COPY_AIM_ACCEPT_FAIL_FINISHED
errAcceptTip[COPY_AIM_ACCEPT_FAIL_PREV_AIM] = Lang.COPY_AIM_ACCEPT_FAIL_PREV_AIM

errFinishTip = {}
errFinishTip[COPY_AIM_FINISH_FAIL_NOT_ACCEPTED] = Lang.COPY_AIM_FINISH_FAIL_NOT_ACCEPTED
errFinishTip[COPY_AIM_FINISH_FAIL_NOT_ENOUGH_NUM] = Lang.COPY_AIM_FINISH_FAIL_NOT_ENOUGH_NUM
errFinishTip[COPY_AIM_FINISH_FAIL_POS] = Lang.COPY_AIM_FINISH_FAIL_POS
errFinishTip[COPY_AIM_FINISH_FAIL_TIME] = Lang.COPY_AIM_FINISH_FAIL_TIME


-- 副本报名状态
SIGN_MATCH = 1
SIGN_CONFIRM = 2

-- 特殊副本ID定义
COPY_PATA_1_ID          = 408
COPY_TD_ID1             = 6001
COPY_TD_ID2             = 6002
COPY_TD_ID3             = 6003
COPY_WSSL_ID            = 410               -- 武圣试炼
COPY_JZWAR_ID           = 411               -- 荆州争夺战
COPY_OFFLINE_PK_ID      = 413               -- 离线竞技场
COPY_DATI_ID            = 414               -- 答题活动
COPY_FAMILY_ONHOOK_ID   = 415               -- 军团挂机
COPY_WORLDBOSS          = 416               -- 世界BOSS
COPY_FAMILY_COPY_ID     = {9003,9005}       -- 军团副本
COPY_GMTX_COPY_ID       = 9004              -- 古墓探险
COPY_HORSE_FIGHT_ID     = 417               -- 铁骑争锋
COPY_XUNBAO_COPY_ID     = 9009              -- 寻宝副本
COPY_FAMILYWAR_ID       = 418               -- 军团战
COPY_DHFIGHT_ID1        = 419               -- 大汉格斗场1 
COPY_DHFIGHT_ID2        = 420               -- 大汉格斗场2
COPY_DHFIGHT_ID3        = 422               -- 大汉格斗场3
COPY_DHFIGHT_ID4        = 423               -- 大汉格斗场4
COPY_DHFIGHT_ID5        = 424               -- 大汉格斗场5
COPY_TD2_ID             = 9020              -- 华容突围
COPY_TD2_ID2            = 9030              -- 华容突围2
COPY_CCJJWAR_ID         = 425               -- 草船接箭

-- PATA相当
PATA_FREE_RESET_CNT =  1
PATA_ADD_RESET_YUANBAO = 200

--答题
DATI_FAIL_PERCENT = 0.3
DATI_AREA_1 = 1
DATI_AREA_2 = 2
DATI_AREA_3 = 3
DATI_ONE_NEED_TIME = 30

--离线竞技场
OFFLINE_PK_BOSS_ID = 500
OFFLINE_PK_BOSS_ID1 = 3007001

-- 无双战域
WUSHUANG_JOB1_ID1 = 1011005
WUSHUANG_JOB1_ID2 = 1011008
WUSHUANG_JOB1_ID3 = 1011105
WUSHUANG_JOB1_ID4 = 1011108
WUSHUANG_JOB1_ID5 = 1011205
WUSHUANG_JOB1_ID6 = 1011208

WUSHUANG_JOB2_ID1 = 1012005
WUSHUANG_JOB2_ID2 = 1012008
WUSHUANG_JOB2_ID3 = 1012105
WUSHUANG_JOB2_ID4 = 1012108
WUSHUANG_JOB2_ID5 = 1012205
WUSHUANG_JOB2_ID6 = 1012208

WUSHUANG_JOB3_ID1 = 1013005
WUSHUANG_JOB3_ID2 = 1013008
WUSHUANG_JOB3_ID3 = 1013105
WUSHUANG_JOB3_ID4 = 1013108
WUSHUANG_JOB3_ID5 = 1013205
WUSHUANG_JOB3_ID6 = 1013208

--铁骑争锋
HORSE_FIGHT_END_AREA = 1
HORSE_FIGHT_END_MAP = 3011
HORSE_FIGHT_START_MAP = 3010
